<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="author" content="LiuWeiLiang">
	<title>帐户查询</title>
	<script language="javascript" src="../script/common.js" type="text/javascript"></script>
	<!--动态js-->
	<script language="javascript" type="text/javascript">
		//页面加载方法
		function load(){
			Eui.showNavigation();
		}
		//查询数据显示到前台页面
		function search(){
			var uniqueId = $("amount").value;  //帐户编号
			var idno = $("comNo").value;	//工商执照号
			var searchButton=$("form").searchButton;
			DWR.call("txQueryService.getCompanyInfo",uniqueId,idno,function(v){
				if(!v){return;}
				var carduser=v.cardUser;
				var account=v.account;
				var compCust=v.companyCustomer;
				var data={};
				var obj=carduser[0][0];
				data.name=compCust.name;
				data.status=Common.getText("card_status",obj.status);
				data.balance = Format.fenToYuan(account.balance);
				data.creditLimit = Format.fenToYuan(obj.creditLimit);
				Common.showDetail('form',data)
			},{disCtrl:searchButton,loading:"form"});
		}
	</script>
</head>

<body onload="load()">
	<!--页面导航-->
<div class="nav"><div id="nav">&nbsp;</div></div>

	<!--静态页面部分-->
	<div id="detview">
		<form id="form" name="form">
			<div class="form">
			<div class="formTitle">
				<table cellSpacing="0" cellPadding="4" width="100%" border="0" class="col3 label8">
					<tr>
						<td><label>帐户编号</label> <input type="text" name="amount" onblur="checkV(this,'',true)"><span class="des">*</span></td>
						<td><label>工商营业执照号</label> <input type="text" name="comNo" onblur="checkV(this,'',true)"><span class="des">*</span></td>
						<td> <button type="button" id="searchButton" name="searchButton" onclick="search()">查 询</button></td>
					</tr>
					
				</table>
				</div>
				<table cellSpacing="0" cellPadding="4" width="100%" border="0" class="viewTable">
					<tr> 
						<td ><label>单位名称</label> <span id="name"></span></td>
						<td><label>帐户状态</label> <span id="status"></span></td>
					</tr>
					<tr>
						<td ><label>帐户余额</label> <span id="balance"></span>&nbsp;</td>
						<td><label>信用额度</label> <span id="creditLimit"></span>&nbsp;</td>
					</tr>
				</table>
			 </div>	
		</form>
		</div>
</body>
</html>
